import {createRouter, createWebHistory} from 'vue-router'

const routes = [
    {
        path: '/',
        redirect: '/ProcessDefinitions',
        component: () => import('@/views/Home.vue'),
        children: [
            {
                path: '/ProcessDefinitions',
                component: () => import('@/views/ProcessDefinitions.vue'),
            },
            {
                path: '/ProcessInstance',
                component: () => import('@/views/ProcessInstance.vue'),
            },
            {
                path: '/TaskList',
                component: () => import('@/views/TaskList.vue'),
            },
        ]
    },

]

const router = createRouter({
    history: createWebHistory(import.meta.env.BASE_URL),
    routes
})


export default router